package com.imooc;

import io.seata.spring.boot.autoconfigure.SeataAutoConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @author liansen
 * @create 12-14-23:07
 */
@SpringBootApplication(exclude = {SeataAutoConfiguration.class,
                                  MongoAutoConfiguration.class,
                                  MongoDataAutoConfiguration.class
                                  })
@EnableDiscoveryClient //开启服务的注册与发现
@MapperScan(basePackages = "com.imooc.mapper")
public class UserApplication {

    public static void main(String[] args) {
        SpringApplication.run(UserApplication.class, args);
    }
}
